package com.zxc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zxc.dao.CstLostMapper;
import com.zxc.entity.CstLost;
import com.zxc.service.CstLostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CstLostServiceImpl implements CstLostService {

    @Autowired
    private CstLostMapper cstLostMapper;

    @Override
    public List<CstLost> getCstLost(Integer pageNo, Integer pageSize) {
        List<CstLost> cstLostList = cstLostMapper.getCstLost(pageNo,pageSize);
        return cstLostList;
    }

    @Override
    public int selectCstLostCount() {
        int total = cstLostMapper.selectCount(new QueryWrapper<>());
        return total;
    }
}
